<?php
/**
 * @Name: UserPasswordRequest.php
 * @Author: yashuai
 * @Desc: 重置密码
 */

namespace App\Http\Requests\Rbac;

use App\Http\Requests\PackingRequest;

class UserPasswordRequest extends PackingRequest
{

    public function rules()
    {
        return [
            'UserID'       => 'required|integer',
            'UserPassword' => 'required|between:6,32',
        ];
    }

    public function messages()
    {
        return [
            'UserID.required'       => '缺少记录ID参数',
            'UserID.integer'        => '记录ID参数类型异常',
            'UserPassword.required' => '密码不能为空',
            'UserPassword.between'  => '密码长度为6-30位',
        ];
    }

}
